<?php
include_once('common/header.php');
if($AppUI->id > 0) {
	$objOffline 	= new Offline();
	$intLimit		= OFFLINE_LIMIT;
	$intTotal		= 0;
	$intPage		= $objRequest->getParam('page', 1);
	$intOffset		= ($intPage-1)*$intLimit;
	$arrResult		= $objOffline->getAllForExpire($AppUI->id,$intOffset,$intLimit,$intTotal);
	$this->view->arrResult		= $arrResult;
	$this->view->intTotalPage	= ceil($intTotal / $intLimit);
	$this->view->intPage 		= $intPage;
	$this->view->intTotalExp	= $intTotal;
} else {
	Vfriend_Function::redirect(LINK_OFFLINE);
}
?>